package com.epam.trs.employee;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;

/**
 * 
 * @author Tair_Mustafaiev
 * 
 */

@Entity
public class Employee {

	@Id
	@Column(name="ID")
	transient private Long employeeId;
	
	private String name;
	private String lastname;
	private String phone;
	private String email;
	private String project;
	transient private boolean manager;

	public void setId(final Long employeeId) {
		this.employeeId = employeeId;
	}

	public Long getId() {
		return employeeId;
	}

	public void setName(final String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setLastname(final String lastname) {
		this.lastname = lastname;
	}

	public String getLastname() {
		return lastname;
	}

	public void setPhone(final String phone) {
		this.phone = phone;
	}

	public String getPhone() {
		return phone;
	}

	public void setEmail(final String email) {
		this.email = email;
	}

	public String getEmail() {
		return email;
	}

	public void setProject(final String project) {
		this.project = project;
	}

	public String getProject() {
		return project;
	}

	public void setManager(final boolean manager) {
		this.manager = manager;
	}

	public boolean isManager() {
		return manager;
	}
}
